﻿//using System;
//using UILib;
//using UnityEngine;
//using XMainClient.UI.UICommon;
//using XUtliPoolLib;

//namespace XMainClient.UI
//{
//	// Token: 0x020018A0 RID: 6304
//	internal class XGuildPortraitBehaviour : DlgBehaviourBase
//	{
//		// Token: 0x0601069A RID: 67226 RVA: 0x004018EC File Offset: 0x003FFAEC
//		private void Awake()
//		{
//			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
//			this.m_BtnOK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton);
//			Transform transform = base.transform.Find("Bg/PortraitList/PortraitTpl");
//			this.m_PortraitPool.SetupPool(transform.parent.gameObject, transform.gameObject, (uint)XGuildPortraitView.PORTRAIT_COUNT, false);
//			Vector3 tplPos = this.m_PortraitPool.TplPos;
//			for (int i = 0; i < XGuildPortraitView.PORTRAIT_COUNT; i++)
//			{
//				GameObject gameObject = this.m_PortraitPool.FetchGameObject(false);
//				gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(i % XGuildPortraitView.COL_COUNT * this.m_PortraitPool.TplWidth), tplPos.y - (float)(i / XGuildPortraitView.COL_COUNT * this.m_PortraitPool.TplHeight));
//				this.m_PortraitList[i] = gameObject.transform.Find("Portrait").gameObject;
//				this.m_SelectorList[i] = gameObject.transform.Find("Selector").gameObject;
//			}
//		}

//		// Token: 0x04007685 RID: 30341
//		public IXUIButton m_Close = null;

//		// Token: 0x04007686 RID: 30342
//		public IXUIButton m_BtnOK;

//		// Token: 0x04007687 RID: 30343
//		public GameObject[] m_PortraitList = new GameObject[XGuildPortraitView.PORTRAIT_COUNT];

//		// Token: 0x04007688 RID: 30344
//		public GameObject[] m_SelectorList = new GameObject[XGuildPortraitView.PORTRAIT_COUNT];

//		// Token: 0x04007689 RID: 30345
//		public XUIPool m_PortraitPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
//	}
//}
